﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminUpdatePwd.aspx.cs" Inherits="CNVP.JShop.Web.Admin.AdminUpdatePwd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
            <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="IE=7" http-equiv="X-UA-Compatible" />
    <link href="CSS/Edit.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#btUp").click(function () {
                var $txtOldPwd = $("#txtOldPwd");
                if ($txtOldPwd.val() == "") {
                    alert("请输入旧密码！");
                    $txtOldPwd.focus();
                    return false;
                }
                var $txtPwd1 = $("#txtPwd1");
                if ($txtPwd1.val() == "") {
                    alert("请输入新密码！");
                    $txtPwd1.focus();
                    return false;
                }
                var $txtPwd2 = $("#txtPwd2");
                if ($txtPwd2.val() == "") {
                    alert("请输入确认新密码！");
                    $txtPwd2.focus();
                    return false;
                }
                if ($txtPwd1.val() != $txtPwd2.val()) {
                    alert("新密码与确认新密码不相同！");
                    $txtPwd2.focus();
                    return false;
                }
            });
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="Content">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="cell">
                <tr>
                    <td class="cell_group" >
                        <img src="Images/ListIconTitle.jpg" alt="" />&nbsp;您的位置：<a href="AdminUpdatePwd.aspx">密码修改</a>
                    </td>
                </tr>
                </table>
                  <table border="0" cellpadding="0" cellspacing="0" class="division">
                        <tr >
                            <th>
                                旧&nbsp;密&nbsp;码:</th>
                            <td>
                                <asp:TextBox ID="txtOldPwd" runat="server" TextMode="Password" MaxLength="20" />
                                </td>
                      </tr>
                      <tr id="Pwd1" runat="server">
                            <th>
                                 新&nbsp;密&nbsp;码:</th>
                            <td>
                                <asp:TextBox ID="txtPwd1" runat="server" TextMode="Password" MaxLength="20" />
                                </td>
                        </tr>
                        <tr id="Pwd2" runat="server">
                            <th>
                                 确认新密码:</th>
                            <td>
                                <asp:TextBox ID="txtPwd2" runat="server" TextMode="Password" MaxLength="20" />
                                </td>
                        </tr>
                    </table>
             <div class="EditBtn">  
                <asp:Button ID="btUp" runat="server" Text="提交" OnClick="btUp_Click" />
                                <input type="button" value="取消" onclick="javascript:history.go(-1)" />
                                </div>
        </div>
    </form>
</body>
</html>
